using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LitTools;
using UnityEngine.SceneManagement;
using Cysharp.Threading.Tasks;

public partial class GameManager : Singleton<GameManager>, ISingleton
{
    public int Order => 0;

    public void OnDestroy()
    {
        Debug.Log("[GameManager] OnDestroy");
    }

    public void OnInit()
    {
        Debug.Log("[GameManager] OnInit");
    }

    public void OnUpdate()
    {

    }
}

public partial class GameManager 
{ 
    public async UniTaskVoid StartGame()
    {
        await UIManager.Instance.OpenUI<LoadingPanel>();
        await SceneManager.LoadSceneAsync("scene_main");
        await UIManager.Instance.OpenUI<MainPanel>();
        UIManager.Instance.CloseUI<LoadingPanel>();
    }
}
